/*
 * Created on 2006-5-24
 * 
 * Copyright: Bluejay Networks Inc. & Inquiry Management Systems Ltd.  2004
 *
 * This software is the proprietary information of Bluejay Networks Inc. & 
 * Inquiry Management Systems Ltd.  
 * Use is subject to license terms.
 */
package com.ims.iaa.Cache;

import com.ims.iaa.AD.ImgLink;


/**
 * @author changsheng
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public interface IAppLvl{
	
	/**
	 * if first element ,later must update the refImprID ;
	 */
	public static final int FCR_FIRST = 4 ;
	
	/**
	 * must turn the site lvl on
	 * <br>the image not in the master list
	 */
	public static final int FCR_NO = 5  ;
	/**
	 *
	 */
	public static final int FCR_WAIT = 6  ;	
	/**
	 * Fast Compare Result:Match
	 */
	public static final int FCR_MATCH = 0 ;
	/**
	 * Fast Compare Result:Not Match
	 */
	public static final int FCR_NOT_MATCH = 1 ;
	/**
	 * Fast Compare Result:Max Compare Times  
	 */
	public static final int FCR_OVERLOAD = 2 ;
	/**
	 * Fast Compare Result:Inital
	 */
	public static final int FCR_INITAL = 3 ;
	
	/**
	 * Derive Flag :INITAL
	 */
	public final static int INITAL = -1 ;
	/**
	 * Derive Flag :MATCH
	 */
	public final static int MATCH = 0 ;
	/**
	 * Derive Flag :NOT_MATCH
	 */
	public final static int NOT_MATCH  = 1 ;
	
	

	/**
     * do the fast compare
     * @return
     */
    public int doFastCompare(ImgLink ad);
	
	public void doCompare(ImgLink ad,int thisImpressionID) ;
    
    public static final int COMPARE_MAX_TIMES = 30 ;
}
